package com.sdx.console.orgmain.entity;

import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

import com.fasterxml.jackson.annotation.JsonIgnore;
import org.beetl.sql.core.annotatoin.ColumnIgnore;
import org.beetl.sql.core.annotatoin.AutoID;
import org.beetl.sql.core.annotatoin.SeqID;
import org.apache.commons.lang3.StringUtils;
import com.ibeetl.admin.core.util.ValidateConfig;
import com.sdx.service.ConfigService;

import org.beetl.sql.core.TailBean;
import java.math.*;

import com.ibeetl.admin.core.annotation.Dict;
import com.ibeetl.admin.core.entity.BaseEntity;

import org.beetl.sql.core.annotatoin.InsertIgnore;
import org.beetl.sql.core.annotatoin.Version;
import org.beetl.sql.core.annotatoin.LogicDelete;
import com.sdx.common.utils.Utils;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

/* 
* 
* gen by Spring Boot2 Admin 2019-03-23
*/
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
@Data
public class OrgMain extends BaseEntity{

    //组织ID
    @NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
    @AutoID	
    private Long orgId ;
	
    //父组织ID
    private Integer orgPid ;
	
    //省份id
    private Integer provinceId ;
	
    //组织名称
    private String orgName ;
	
    //办事处名称
    private String subName ;
	
    //组织级别
    private String orgLevel ;
	
    //组织主图
    private String mainImg ;
	
    //组织图片集合[@]
    private String orgImgs ;
	
    //办公地址
    private String orgAddr ;
	
    //联系人
    private String contactMan ;
	
    //联系电话
    private String contactPhone ;
	
    //定位省份
    private String locationPro ;
	
    //定位城市
    private String locationCity ;
	
    //定位名称
    private String locationName ;
	
    //地图坐标
    private String locationPoint ;
	
    //创建时间
    private Date createdTime ;
	
    //更新时间
    private Date updatedTime ;

    //更新人
    private String updatedBy;

    //更新人姓名
    private String updatedName;
	
	public String getMainImgView(){
		return Utils.imageUrl(mainImg);
	}
	public String getOrgImgsView(){
		return Utils.imageUrl(orgImgs);
	}



}
